import request from '@/utils/request'

// 查询工程列表列表
export function listProject(query) {
    return request({
        url: '/system/project/list',
        method: 'get',
        params: query
    })
}

// 查询工程列表详细
export function getProject(projectId) {
    return request({
        url: '/system/project/getInfo/' + projectId,
        method: 'get'
    })
}

// 新增工程列表
export function addProject(data) {
    return request({
        url: '/system/project/project',
        method: 'post',
        data: data
    })
}

// 修改工程列表
export function updateProject(data) {
    return request({
        url: '/system/project/project',
        method: 'put',
        data: data
    })
}

// 删除工程列表
export function delProject(projectId) {
    return request({
        url: '/system/project/project/' + projectId,
        method: 'delete'
    })
}

// 导出工程列表
export function exportProject(query) {
    return request({
        url: '/system/project/project/export',
        method: 'get',
        params: query
    })
}
